<template>
  <div>
    <van-dropdown-menu>
      <van-dropdown-item
        v-model="value1"
        :options="option1"
        title="综合"
        disabled
      />
      <van-dropdown-item v-model="value1" :options="option1" title="价格" />
      <van-dropdown-item v-model="value2" :options="filterCategory" title="分类" />
    </van-dropdown-menu>
    <Products :goodsList="goodsList" />
  </div>
</template>

<script>
import Products from "@/components/Products";
export default {
  props: ["goodsList", "filterCategory"],
  components: {
    Products,
  },
  data() {
    return {
      value1: 0,
      value2: "a",
      option1: [
        { text: "价格由高到低", value: 0 },
        { text: "价格由低到高", value: 1 },
      ],
    //   option2: [
    //     { text: "全部", value: "a" },
    //     { text: "居家", value: "b" },
    //   ],
    };
  },
};
</script>
 
<style lang = "less" scoped>
</style>